home *** CD-ROM | disk | FTP | other *** search
- *************************
- WiseCrack V1.0
- March 23, 1992
- *************************
-
- Contents:
- =========
- 1. What is WiseCrack?
- 2. CLI usage
- 3. WorkBench usage
- 4. Installation
- 5. Datafile format
- 6. Disclaimer
-
-
- 1. What is WiseCrack?
- ---------------------
- Wisecrack is a fortune cookie program. When started, it prints a
- random message from a message database. This kind of program is very
- popular on Un*x systems. WiseCrack can be run from either the CLI or the
- WorkBench, and it can open it's own window for the message.
- What use has this program? Well, even when using a hard-disk the
- startup-sequence can take some time to finish. So with installing
- WiseCrack to be run from the startup-sequence, it can give you something
- else (possibly funny) to look at than the usual startup messages. This
- is the way I am using it. (Yes, I *am* using it myself.)
- Since I haven't got 2.0 myself yet, I haven't tried it on a 2.0
- system. But I think it should run on both systems.
-
- 2. CLI usage
- ------------
- WiseCrack [-w] [file]
-
- Options:
- -w
- Makes WiseCrack open its own window for the text. Without this option
- WiseCrack will write the text to standard output.
-
- file
- The filename for the file WiseCrack will use to search for it's
- messages. If the datafile is in another directory than the current,
- you must specify the whole path.
- If no filename is given, WiseCrack will use 'S:WiseCrack.Dat' as
- default.
-
- -? | -h | ?
- Anyone of these options will print out the version number and a short
- usage description.
-
- Example:
-
- WiseCrack -w SYS:Data/messages.dat
-
- will make WiseCrack open a window for the message it found in the file
- messages.dat in the directory SYS:Data.
-
- 3. WorkBench usage
- ------------------
- To start WiseCrack from WorkBench simply double-click on it's icon. When
- WiseCrack is run from the WorkBench it automatically opens it's own
- window for the output.
- To specify an alternative file instead of the default 'S:WiseCrack.Dat'
- use the tooltype 'DATAFILE'. For example:
-
- DATAFILE=sys:etc/Limericks.Dat
-
- will make WiseCrack pick a message from the file Limericks.Dat in the
- directory sys:etc.
-
- 4. Installation
- ---------------
- You can copy 'Wisecrack' and 'WiseCrack.Dat' to anywhere you want.
- As mentioned before, the default is for WiseCrack to look for the file
- 'WiseCrack.Dat' in S:. But if you want the datafile another place, you
- must either call WiseCrack with the full path to the datafile (from CLI),
- or use the tooltype option in the icon (see above).
- WiseCrack uses the icon.library (system library) and reqtools.library
- (included in this distribution), so both must be present in libs:. The
- reqtools.library is a shared library made by Nico François. (See 7.
- Disclaimer). There are to versions of this library, an 1.3 version and a
- 2.0 version. To install reqtools.library, simply double-click on the
- InstallLibrary icon.
- If you want to run WiseCrack at startup, edit the S:Startup-Sequence
- and put it somewhere at the start. (Ref. section 2: CLI usage). If you
- use the -w option, you might want to run WiseCrack in the background.
- This can be done by 'Run >NIL: <NIL: WiseCrack -w'.
- If you have WorkBench 2.0 you can instead drag the WiseCrack icon into
- the WbStartup drawer. Since I haven't got 2.0 myself yet, I have not tried
- this. (Ref. section 3: WorkBench usage).
-
- 5. Datafile format
- ------------------
- The datafile is an ordinary text file, so it should be easy to create
- your own datafile, or add messages to the existing datafile. The only
- thing special is that each new message starts with a backslash '\'. Take a
- look at the file 'example.dat' for an example of how to make a datafile.
- Since the reqtools.library requester is a bit fuzzy about very long
- lines, you should try not to use lines longer than 72 characters.
-
- 6. Disclaimer (I should have one, shouldn't I? Every one else has. :-)
- -------------
- The program and the source is public domain. I claim NO copyright at
- all. That means you can do whatever you want with it. You can copy it, give
- it to friends, post it on BBS's, edit, use or change the source all you
- want. You can even sell it (if you can find anyone who would want to pay
- for it :-).
- There is only one restriction, and that is on the reqtools.library.
- ReqTools library is copyright (c) Nico François (of PowerPacker fame),
- and should be treated thereafter. The ReqTools library is a really great
- tool, you should try it if you haven't already. (Great work Nico!)
- As I already has mentioned there is no need to send me any money for
- this. I am just happy to contribute with something to the Amiga
- community. Since this is my first release on the Amiga, I would like to
- hear from you if you have any comment or (hopefully not) bug reports.
- Here is my adress:
-
- Lars Magnus Nordeide
- Odinsgate 8
- N-4300 Sandnes
- NORWAY
-
- Until July 1st, 1992, you can also use my email adress larsm@ii.uib.no
-